import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path : '/',
    name : 'logo',
    component: () => import('@/logoAnimate/logoAn.vue')
  },
  {
   path : '/layout',
   name : 'Layout',
   component: () => import('@/views/Layout.vue'),
   children:[
    {
      path : '/home',
      name : 'Home',
      component: () => import('@/page/Home.vue')
     },
     {
      path : '/explore',
      name : 'Explore',
      component: () => import('@/page/Explore.vue')
     },
     {
      path : '/novel',
      name : 'Novel',
      component: () => import('@/page/novel.vue')
     },
     {
      path : '/mycenter',
      name : 'myCenter',
      component: () => import('@/page/myCenter.vue'),
    }
  ]
 },
 {
  path : '/logo',
  name : 'logo',
  component: () => import('@/logoAnimate/logoAn.vue'),
 },
{
  path : '/homepage',
  name : 'homePage',
  component: () => import('@/plateblock/myHomePage.vue'),
 },
 {
  path : '/calendar',
  name : 'Calendar',
  component: () => import('@/plateblock/myCalendar.vue'),
 },
{
  path : '/idea',
  name : 'Idea',
  component: () => import('@/plateblock/myFavoite.vue'),
 } ,
{
  path : '/reminder',
  name : 'Reminder',
  component: () => import('@/plateblock/myReminder.vue'),
 },
 {
   path :'/setup',
   name : 'setUp',
   component: () => import('@/plateblock/mySetUp.vue')
 },
 {
   path :'/article',
   name : 'article',
   component: () => import('@/public/pc_article.vue')
 },
 {
   path :'/mask',
   name : 'mask',
   component: () => import('@/public/pc_mask.vue')
 },
 {
   path :'/pcnovel',
   name : 'pcNovel',
   component: () => import('@/public/pc_novel.vue')
 },
 {
   path :'/pcdis',
   name : 'pcDis',
   component: () => import('@/public/pc_discuss.vue')
 },
 {
   path :'/jump',
   name : 'jump',
   component: () => import('@/login/jump.vue')
 },
 {
   path :'/mylogin',
   name : 'myLogin',
   component: () => import('@/login/mylogin.vue')
 },
 {
   path :'/myenroll',
   name : 'myEnroll',
   component: () => import('@/login/myenroll.vue')
 },
 {
   path :'/mymessage',
   name : 'myMessage',
   component: () => import('@/plateblock/myMessage.vue')
 },
 {
   path :'/mydelay',
   name : 'myDelay',
   component: () => import('@/public/pc_delay.vue')
 }          
]

const router = new VueRouter({
  routes,
  // linlExactActiveClass : "current"
})

export default router
